<{include file="admin/header.html"}>
<{include file="admin/left.html"}>

<form id="usersform" name="usersform" method="post" action="<{$formUrl}>" onsubmit="return aclcode();"><!--请务必加上onsubmit事件-->
<!-- Fieldset -->
<fieldset><legend><{$tpl_title}></legend>
<{if $info.uid != ""}><input id="uid" type="hidden" name="uid" value="<{$info.uid}>" /><{/if}>
<div class="input_field">
	<label for="name">用户名: </label>
	<input type="text" value="<{$info.name}>" name="name" class="mediumfield" datatype="s2-18" errormsg="用户名至少2个字符,最多18个字符！" />
	<span class="form_line"><input type="checkbox" class="checkbox" name="status" value="1" <{if $info.status == "1"}> checked="checked" <{/if}> />锁定</span>
</div>

<div class="input_field">
	<label for="password">密码: </label>
	<!--将生成加密的密码输入框，只需要指定id，不需要指定name-->
	<{pwinput id=password add="class='mediumfield' name=password datatype='*6-16' nullmsg='请设置密码！' errormsg='密码范围在6~16位之间！'"}>
	<span class="field_desc">密码为空则不修改</span>
</div>

<div class="input_field">
	<label for="mail">邮箱: </label>
	<input type="text" name="mail" class="mediumfield" datatype="e" nullmsg="请输入邮箱！" errormsg="请输入正确的邮箱地址！" value="<{$info.mail}>" />
</div>

<div class="input_field">
	<label for="phone">电话: </label>
	<input type="text" name="phone" class="mediumfield" value="<{$info.phone}>" />
</div>

<div class="input_field">
	<label for="nickName">昵称: </label>
	<input type="text" name="nickName" class="mediumfield" value="<{$info.nickName}>" datatype="s2-18" nullmsg="请填写昵称！" errormsg="昵称至少2个字符,最多18个字符！" />
</div>

<div class="input_field">
	<label for="acl">管理组: </label>
	<select class="dropdown" name="acl">
		<option value="administrator"<{if $info.acl == "administrator"}> selected="selected" <{/if}>>管理员</option>
		<option value="editor"<{if $info.acl == "editor"}> selected="selected" <{/if}>>网站编辑</option>
	</select>
</div>

<div class="input_field no_margin_bottom">
	<label for="submit">&nbsp;</label>
	<input type="submit" value="提交" class="submit">
</div>
</fieldset>
<!-- End of fieldset -->
</form>
<{include file="admin/footer.html"}>